home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / CW MacMindy 1.4 / Examples / Modules / beep.dyl next >
Encoding:
Text File  |  1995-05-13  |  303 b   |  15 lines  |  [TEXT/CWIE]

  1. module:    Beep
  2.  
  3. define module Beep
  4.     use Dylan;                // all programs need this.
  5.     use Cheap-IO;            // imports "puts & putc"
  6.     export beep;            // make beep available to the world.
  7. end module Beep;
  8.  
  9. // an exported method.
  10.  
  11. define constant beep = method ()
  12.     puts("*beep*\n");
  13.     putc(as(<character>, 7));
  14. end method;
  15.